import request from '@/utils/request'

export function updateComponentInfo(data) {
  return request({
    url: '/rangeBuild/component/updateComponentInfo',
    method: 'post',
    data
  })
}

export function queryCompHistoryLog(data) {
  return request({
    url: '/rangeBuild/component/queryCompHistoryLog',
    method: 'post',
    data
  })
}

export function onOfflineComps(data) {
  return request({
    url: '/rangeBuild/component/onOfflineComps',
    method: 'post',
    data
  })
}

export function getOfflineList(data) {
  return request({
    url: '/rangeBuild/component/getOfflineList',
    method: 'get',
    params: data
  })
}

export function getComponentEnvList(data) {
  return request({
    url: '/rangeBuild/component/getComponentEnvList',
    method: 'get',
    params: data
  })
}
